package com.ksyun.campus.metaserver.config.zookperconfig;

import org.I0Itec.zkclient.ZkClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/8/9 20:50
 */
@Configuration
public class ZookeeperConfig {

    @Bean
    public ZkClient addZkClient(ZookeeperConfigProperties properties) {
        return new ZkClient(properties.getAddress(), properties.getTimeout(), properties.getTimeout());
    }


}
